package seqlist.stack_queue.queue.impl;

import seqlist.stack_queue.queue.MyQueue;

/**
 * @author yuisama
 * @date 2023/03/22 21:17
 **/
public class LoopQueueTest {
    public static void main(String[] args) {
        MyQueue<Integer> queue = new LoopQueue<>(5);
        queue.offer(1);
        queue.offer(3);
        queue.offer(5);
        queue.offer(7);
        queue.offer(9);
        System.out.println(queue);
        // 1
        System.out.println(queue.peek());
        queue.poll();
        queue.offer(11);
        queue.poll();
        System.out.println(queue);
    }
}